CloseOpenTransport
Shuts down the Open Transport software when you are finished using it.C INTERFACE
void CloseOpenTransport(void);C++ INTERFACES
None. C++ applications use the C interface to this function.DESCRIPTION
TheCloseOpenTransport
function closes the Open Transport software, which tells Open Transport that your client has finished using it. Stand-alone code segments must use this function before they unload from memory.When applications finish using Open Transport, they have the option of using this function to unload the Open Transport software modules without stopping execution if they have other tasks to perform that do not require Open Transport; otherwise, applications don't need to use this function.
SPECIAL CONSIDERATIONS
If your client uses the Apple Shared Library Manager, you must call theCleanupLibraryManager
function before calling theCloseOpenTransport
function.System software cannot unload Open Transport until the last software
module on your computer that called theInitOpenTransport
orInitOpenTransportUtilities
function has also called theCloseOpenTransport
function.If your client is not an application, you must be sure to call the
CloseOpenTransport
function before unloading from memory.SEE ALSO
To initialize all of the Open Transport software, call theInitOpenTransport
function (page 6-23).To initialize only the port-handling part of Open Transport, call the
InitOpenTransportUtilities
function (page 6-25).For more information about initializing Open Transport, see the section "Initializing Open Transport" (page 6-9).